<?php

class ZFKiller_Db_Table_Row extends Zend_Db_Table_Row_Abstract {

    private $_allowRefreshAfterUpdate = true;

    public function allowRefreshAfterSave($refresh = true) {
        $this->_allowRefreshAfterUpdate = $refresh;
    }
    
    public function isChanged() {
        return (count($this->_modifiedFields) > 0);
    }

    protected function _refresh() {
        if ($this->_allowRefreshAfterUpdate) {
            parent::_refresh();
        }
    }

}